Ext.define('iMedproplus.store.User', {
    extend: 'Ext.data.Store',
    requires: [
    'iMedproplus.model.User'
    ],
    model: 'iMedproplus.model.User',
    autoLoad: true,
    proxy: {
        type: 'ajax',
        api: {
            read: //'data/patient.json',//
            '/imedproplus-rest/rest/json/user/get',
            create  : //'data/update.json',
            '/imedproplus-rest/rest/json/user/create',
            update: //'data/update.json',
            '/imedproplus-rest/rest/json/user/update',
            destroy : //'data/update.json'
            '/imedproplus-rest/rest/json/user/destroy'
        },
        reader: {
            type: 'json',
            root: 'data',
            successProperty: 'success'
        },
        writer: {
            type: 'json',
            writeAllFields: true,
            allowSingle: false
        }
    }
});